<%@ page import="linuxbox.BoxStatic" %>

<%
  String ROOT = request.getContextPath();
  String cssDir = ROOT + "/" + BoxStatic.defaultLang + "/css";
  String jspDir = ROOT + "/" + BoxStatic.defaultLang + "/jsp" ;
  String imageDir = ROOT + "/" + BoxStatic.defaultLang + "/images";
  String servletDir = ROOT + BoxStatic.servletPath;

  String ErrorMsg = (String) request.getParameter("ErrorMsg");
  if (ErrorMsg == null)
    ErrorMsg = (String) request.getAttribute("ErrorMsg");
%>
<html>

<head>
<title>Welcome to Net.O.Box</title>
</head>


<body topmargin="80"  onLoad="document.theForm.NAME.focus();">

<table border="0" cellpadding="0" cellspacing="0" align="center">
  <tr valign=top>
    <td width="136" align="center"><img src="<%=imageDir%>/logo2.jpg" width="136" height="100"><br>
    <br>
&nbsp;<b><font color="#CE5700" face="Comic Sans MS">Network Office<br>
    Is In this<br>
    <font size="4">Magic Box</font></font></b></td>
    <td width="380">
    <p align="right"><img src="<%=imageDir%>/headbar2.jpg" width="380" height="40"><br>
      <form name=theForm action="<%=servletDir%>/AdminLoginAction" method="post">
    <table width="100%">
      <tr>
      <td align="center">
      <table width="374" style="border-collapse: collapse" bordercolor="#111111" cellpadding="0" cellspacing="0">
      <tr>
      	<td colspan=2 width="374" height="10"><font color=red>
      	<% if (ErrorMsg!=null)
      	    out.print(ErrorMsg);
      	%>
      </font></td>
      </tr>
      <tr>
      	<td width="227">
        <img src="<%=imageDir%>/userlogin.jpg" width="20" height="20" align="right"></td>
      	<td width="147" height="25">
        <b><font face="Verdana" color="#CE5700" style="font-size:14px;">User Login</font></b></td>
      </tr>
      <tr>
      	<td colspan=2 width="227" height="10"></td>
      </tr>
      <tr>
      	<td width="227">
        <p align="right"><font face="Courier New" size="2">Username:&nbsp;&nbsp;</font></td>
      	<td width="147"><input name="NAME" size="12"></td>
      </tr>
      <tr>
      	<td width="227">
        <p align="right"><font face="Courier New" size="2">Password:&nbsp;&nbsp;</font></td>
      	<td width="147"><input type="password" name="PASSWORD" size="12"></td>
      </tr>
      <tr>
      	<td width="227"></td>
      	<td width="147"><input name="Done" type="submit" value=" Login "></td>
      </tr>
      </table>
      </td>
      </tr>
      <tr><td>
        <hr color="#CE5700" size="1">
      </td></tr>
      <tr>
      <td align="center">
        <p style="font-size:12px;color:#000000">
        [Suggest using MSIE 4.0 or above, 800x600 resolution]</p>
      </td>
      </tr>
    </table>
  </form>
   
    </td>
  </tr>
  <tr>
    <td colspan="2" bgcolor="#CE5C00">
    <p style="font-size:11px;color:#FFFFFF" align="center">
    <font face="Times New Roman">Copyright &copy; Net.O.Box 1999-2002 All Right Reserved.</font></p></td>
  </tr>
</table>

</body>

</html>